using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN OrganizationsEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: OrganizationsEntity</para>
	/// <para>Description: ClassOrganizationsEntity store data of table Organizations</para>
	///</summary>

	[Serializable]
	public partial class OrganizationsEntity{


		private bool _InternalChangedIsNullOrganizationId=true;
		private bool _IsNullOrganizationId=true;
		private bool _InternalChangedIsNullParentId=true;
		private bool _IsNullParentId=true;
		private bool _InternalChangedIsNullOrgCode=true;
		private bool _IsNullOrgCode=true;
		private bool _InternalChangedIsNullOrgName=true;
		private bool _IsNullOrgName=true;
		private bool _InternalChangedIsNullNote=true;
		private bool _IsNullNote=true;
		private bool _InternalChangedIsNullOrgType=true;
		private bool _IsNullOrgType=true;
		private int _OrganizationId;
		private int _ParentId;
		private string _OrgCode;
		private string _OrgName;
		private string _Note;
		private Byte _OrgType;
		[XmlElement(ElementName = "IsNullOrganizationId")]
		public bool IsNullOrganizationId{
			get{return _IsNullOrganizationId;}
			set{if(!_InternalChangedIsNullOrganizationId)_IsNullOrganizationId=value;}
		}
		[XmlElement(ElementName = "IsNullParentId")]
		public bool IsNullParentId{
			get{return _IsNullParentId;}
			set{if(!_InternalChangedIsNullParentId)_IsNullParentId=value;}
		}
		[XmlElement(ElementName = "IsNullOrgCode")]
		public bool IsNullOrgCode{
			get{return _IsNullOrgCode;}
			set{if(!_InternalChangedIsNullOrgCode)_IsNullOrgCode=value;}
		}
		[XmlElement(ElementName = "IsNullOrgName")]
		public bool IsNullOrgName{
			get{return _IsNullOrgName;}
			set{if(!_InternalChangedIsNullOrgName)_IsNullOrgName=value;}
		}
		[XmlElement(ElementName = "IsNullNote")]
		public bool IsNullNote{
			get{return _IsNullNote;}
			set{if(!_InternalChangedIsNullNote)_IsNullNote=value;}
		}
		[XmlElement(ElementName = "IsNullOrgType")]
		public bool IsNullOrgType{
			get{return _IsNullOrgType;}
			set{if(!_InternalChangedIsNullOrgType)_IsNullOrgType=value;}
		}
		[XmlElement(ElementName = "OrganizationId")]
		public int OrganizationId{
			get{return _OrganizationId;}
			set{
				_OrganizationId=value;
				if(_OrganizationId!=null){
					_IsNullOrganizationId=false;
					_InternalChangedIsNullOrganizationId=true;
				}
			}
		}
		[XmlElement(ElementName = "ParentId")]
		public int ParentId{
			get{return _ParentId;}
			set{
				_ParentId=value;
				if(_ParentId!=null){
					_IsNullParentId=false;
					_InternalChangedIsNullParentId=true;
				}
			}
		}
		[XmlElement(ElementName = "OrgCode")]
		public string OrgCode{
			get{return _OrgCode;}
			set{
				_OrgCode=value;
				if(_OrgCode!=null){
					_IsNullOrgCode=false;
					_InternalChangedIsNullOrgCode=true;
				}
			}
		}
		[XmlElement(ElementName = "OrgName")]
		public string OrgName{
			get{return _OrgName;}
			set{
				_OrgName=value;
				if(_OrgName!=null){
					_IsNullOrgName=false;
					_InternalChangedIsNullOrgName=true;
				}
			}
		}
		[XmlElement(ElementName = "Note")]
		public string Note{
			get{return _Note;}
			set{
				_Note=value;
				if(_Note!=null){
					_IsNullNote=false;
					_InternalChangedIsNullNote=true;
				}
			}
		}
		[XmlElement(ElementName = "OrgType")]
		public Byte OrgType{
			get{return _OrgType;}
			set{
				_OrgType=value;
				if(_OrgType!=null){
					_IsNullOrgType=false;
					_InternalChangedIsNullOrgType=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END OrganizationsEntityBase*****************************************/
	/*****************************************************************************************************/
}

